//
//  ListViewController.m
//  UI6_UIScrollView_UIPageControl相册作业
//
//  Created by dllo on 15/11/14.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "ListViewController.h"
#import "ListView.h"
#import "PhotoViewController.h"

@interface ListViewController ()<ListViewDelegate>

@end

@implementation ListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    ListView *listV = [[ListView alloc] initWithFrame:self.view.frame];
    listV.delegate = self;
    [self.view addSubview:listV];
    [listV release];
    
    
    
}

- (void)show
{
    PhotoViewController *photoVC = [[PhotoViewController alloc] init];
    [self presentViewController:photoVC animated:YES completion:^{
        
        
    }];
}

- (void)dismiss
{
    [self dismissViewControllerAnimated:YES completion:^{
        
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
